import type { AppRouteModule } from '/@/router/types'
import { RoleEnum } from '/@/enums/roleEnum'

import { LAYOUT } from '/@/router/constant'

const dashboard: AppRouteModule = {
  path: '/user-manager',
  name: 'user-manager',
  component: LAYOUT,
  redirect: '/user-manager/index',
  meta: {
    orderNo: 14,
    icon: 'ion:grid-outline',
    title: '用户管理',
    hideChildrenInMenu: true,
    roles: [RoleEnum.SuperManager],
  },
  children: [
    {
      path: 'index',
      name: 'user-manager',
      component: () => import('/@/views/user-manager/index.vue'),
      meta: {
        // affix: true,
        title: '用户管理',
        hideMenu: true,
      },
    },
  ],
}

export default dashboard
